package cn.zspt.vank.util;

public enum ResultMsgEnum {
    SUCCESS(200, "成功"),
    FAIL(400, "失败"),
    AUTH_ERROR(502, "授权失败!"),
    SERVER_BUSY(503, "服务器正忙，请稍后再试!"),

    AUTH_FAILED(5001,"无此权限！"),
    TOKEN_EXCEPTION(401,"令牌问题！令牌过期或者失效，请重新登录！"),
    REGISTER_FAILED(5001,"注册失败！"),
    WRONG_LOGIN(691,"用户名或者密码错误！"),
    DATABASE_OPERATION_FAILED(504, "数据库操作失败");

    private String msg;
    private int code;
    ResultMsgEnum(int code, String msg ){
        this.msg=msg;
        this.code=code;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode(){
        return code;
    }
}
